package com.graduation.springbootinit.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.springbootinit.model.entity.ActivityPart.ExchangeRecord;

public interface ExchangeRecordService extends IService<ExchangeRecord> {
    
    /**
     * 获取用户兑换记录
     */
    Page<ExchangeRecord> getUserExchangeRecords(Long userId, int pageNum, int pageSize);
    
    /**
     * 更新兑换记录状态
     */
    void updateStatus(Long recordId, Integer status);
    
    /**
     * 获取兑换记录详情
     */
    ExchangeRecord getRecordDetail(Long recordId);
    
    /**
     * 获取待发货的兑换记录
     */
    Page<ExchangeRecord> getPendingRecords(int pageNum, int pageSize);
} 